package com.ysp;

/**
 * @author ysp
 * @date 2021/1/10 15:32
 */
public class ObjectAdapter implements Base{

    private Own own = null;

    public ObjectAdapter(Own own) {
        this.own = own;
    }

    @Override
    public void add() {
        own.JIA();
    }

    @Override
    public void sub() {
        own.JIAN();
    }
}
